from pydantic import BaseModel
from typing import Union


class CategoryBase(BaseModel):
    cid: int
    parent_cid: Union[int, None]
    name: str


class CategoryReturn(CategoryBase):
    pass
